import matplotlib.pyplot as plt

x = [1, 2, 3, 4, 5]
y = [1, 4, 9, 16, 25]

plt.figure()
plt.plot(x, y, label='Square Numbers')

plt.title('Simple Plot')
plt.xlabel('Value')
plt.ylabel('Square')

# 显示图例
plt.legend()
# 显示图表
plt.show()

